<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>


<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Goodwill - Основной заказ</title>
    <link rel="stylesheet" href="resources/css/main.css"/>
    <link rel="stylesheet" href="resources/css/stylesheet.css"/>
    <link rel="stylesheet" type="text/css" href="resources/css/jquery.countdown.css">
    <style type="text/css">
        td{
            font-size: 1.2em;
        }
    </style>
    <script type="text/javascript">
        function reloadPage() {
            window.location.reload();
        }
    </script>
</head>
<body>

<f:view>
    <jsp:include page="status.jsp"/>
    <h:form>
        <h:panelGroup layout="block" styleClass="" id="dvOrderHeader">
            <f:facet name="header">
                <h:outputText value="Информация об основном заказе"/>
            </f:facet>
            <h:panelGrid columns="2" cellpadding="0" cellspacing="0" columnClasses="cgray,cwhite">
                <h:outputText value="Номер заказа ИС" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.id}"/>
                <h:outputText value="Номер заказа 1С" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.c1Num}"/>
                <h:outputText value="Клиент" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.client.companyName}"/>
                <h:outputText value="Статус заказа" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.orderStateAsString}"/>
                <h:outputText value="Дата создания" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.creationDateAsString}"/>
                <h:outputText value="Дата отгрузки" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.deliveryDateAsString}"/>
                <h:outputText value="Сумма" styleClass="b"/>
                <h:outputText value="#{MainOrderInfoBean.mainOrder.factSum == 0 ? MainOrderInfoBean.mainOrder.sumAsString : MainOrderInfoBean.mainOrder.factSumAsString}"/>
            </h:panelGrid>
        </h:panelGroup>
    </h:form>
</f:view>
</body>
</html>